extends "../cTDP_1/cTDP_1.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "治疗术士"
	lv = 3
	attCoe.atk = 217 / 8.5 / 3
	attCoe.maxHp = 700 / 112.5 / 3
	addCdSkill("zlss",9)
	addCdSkill("zlss1",11)
	addSkillTxt("圣水：回复全体友方血量上限12%的血量[cd:9秒]")
	addSkillTxt("圣盾：为我方生命比最低的单位附加3层<圣盾>并回复其生命上限8%血量[cd:11秒]")


func _castCdSkill(id):
	._castCdSkill(id)
	if id == "zlss":
		cst("圣水","000000",position)
		var chas =  getAllChas(2)
		for i in chas:
			healCha(i,i.att.maxHp*0.12)

	if id == "zlss1":
		cst("圣盾","000000",position)
		var chas = getAllChas(2)
		chas.sort_custom(self,"sort")
		chas[0].addBuff(ctrl.b_shengdun.new(5))
		healCha(chas[0],chas[0].att.maxHp * 0.08)